package org.blankie.model.fs;

import org.blankie.lang.Validate;
import org.blankie.model.BlkResource;
import org.blankie.util.OrganizationManager;

public abstract class BlkFSResource implements BlkResource<BlkFSPath> {
    
    private final BlkFSDriver driver;

    private final BlkFSPath path;
    
    BlkFSResource(BlkFSDriver driver, BlkFSPath path) {
        Validate.parameterNotNull("driver, path", driver, path);
        this.driver = driver;
        this.path = path;
    }
    
    @Override
    public OrganizationManager getManager() {
        return driver;
    }

    @Override
    public BlkFSPath getId() {
        return path;
    }
    
    BlkFSDriver getDriver() {
        return driver;
    }

}
